﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Text;

namespace DbWord.Request
{
    class Local : Idb
    {
        static string Connstr = ConfigurationManager.ConnectionStrings["DbConnection"].ConnectionString;
        public string ExecuteScalar(string sql)
        {
            return "999.99";
        }

        public System.Data.DataTable FillTable(string sql)
        {
            DataTable table = new DataTable();
            //table.Columns.Add("系列");
            //table.Columns.Add("x轴");
            //table.Columns.Add("值");
            //table.Columns.Add("d");

            //Random r = new Random();
            //for (int i = 0; i < 10; i++)
            //{
            //    DataRow row = table.NewRow();
            //    row[0] = "test " + i.ToString();
            //    row[1] = r.Next(200);
            //    row[2] = r.Next(200);
            //    row[3] = r.Next(200);

            //    table.Rows.Add(row);
            //}

            return table;
        }
    }
}
